﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using WeifenLuo.WinFormsUI.Docking;
using OpenComposite.EII.Repository;

namespace OpenComposite.EII.Forms.OrgDesigner
{
	public partial class AvailableRolesDock : DockContent
	{
		public AvailableRolesDock()
		{
			InitializeComponent();
		}
		public ListView ListView
		{
			get { return lvAvailableRoles; }
		}

		private void lvAvailableRoles_KeyUp(object sender, KeyEventArgs e)
		{
			if ( e.KeyCode == Keys.I && e.Alt ) {
				if ( lvAvailableRoles.SelectedItems.Count == 0 ) return;
				Helpers.OpenDebugViewer(lvAvailableRoles.SelectedItems[0].Tag as RepositoryItemBase);
			}
		}
	}
}
